package com.taoding.springbootbase.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 定时任务配置类
 * @author wuwentan
 * @date 2019/7/11
 */
@Configuration
@EnableScheduling
public class SchedulerConfig {

    /**
     * 每天05点
     */
    @Scheduled(cron = " 0 0 5 * * ? ")
    public void resetSerialNo(){

    }
}
